

INCLUDE = -I.

objs := $(patsubst %.cpp,%.o,$(wildcard *.cpp))
objs += $(patsubst %.cpp,%.o,$(wildcard ./common/*.cpp))
objs += $(patsubst %.cpp,%.o,$(wildcard ./conn/*.cpp))
objs += $(patsubst %.cpp,%.o,$(wildcard ./loop/*.cpp))
objs += $(patsubst %.cpp,%.o,$(wildcard ./server/*.cpp))
objs += $(patsubst %.cpp,%.o,$(wildcard ./transport/*.cpp))

main:$(objs)  
	ar -cr libeztcp.a $^  
	
 
%.o : %.cpp   
	g++ -c $< -o $@ $(INCLUDE) -std=c++11 
clean:  
	rm *.o  
